import numpy as np
from matplotlib import  pyplot as plt

us_file_path = "./youtube_video_data/US_video_data_numbers.csv"
uk_file_path = "./youtube_video_data/GB_video_data_numbers.csv"

# t1 = np.loadtxt(us_file_path,delimiter=",",dtype="int",unpack=True)
t_uk = np.loadtxt(uk_file_path,delimiter=",",dtype="int")

#选择喜欢书比50万小的数据
t_uk = t_uk[t_uk[:,1] <= 500000 ]

t_uk_comment = t_uk[:,-1] # 最后一列评论数
t_uk_like = t_uk[:,1] # 第二列是喜欢数

plt.figure(figsize=(10,4), dpi=80)
plt.scatter(t_uk_like, t_uk_comment)

plt.show()

